package com.mayikt.weixin.service;

import com.alibaba.fastjson.JSONObject;
import com.mayikt.base.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Api(tags = "VerificaCodeService",description = "微信验证码校验服务")
public interface VerificaCodeService {
    @ApiOperation(value = "根据手机号码验证码token是否正确")
    @ApiImplicitParams({
        // @ApiImplicitParam(paramType="header",name="name",dataType="String",required=true,value="用户的姓名",defaultValue="zhaojigang"),
        @ApiImplicitParam(paramType = "query", name = "phone", dataType = "String", required = true, value = "用户手机号码"),
        @ApiImplicitParam(paramType = "query", name = "weixinCode", dataType = "String", required = true, value = "微信注册码") })
    @PostMapping("/verificaWeixinCode")
    BaseResponse<JSONObject> verificaWeixinCode(@RequestParam(value = "phone",required = true) String phone, @RequestParam(value = "weixinCode",required = true) String weixinCode);
}
